package com.hy.service;

import com.hy.common.base.RespResult;
import com.hy.entity.dto.DetectAddDTO;
import com.hy.entity.dto.DetectDetailSearchDTO;
import com.hy.entity.dto.DetectTaskSearchDTO;
import com.hy.entity.dto.DetectUpdateDTO;
import com.hy.entity.pojo.DetectDetail;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public interface DetectService {


    RespResult creatTask(DetectAddDTO detectAddDTO);

    RespResult overDetail(String propertyCode,Integer taskId);

    RespResult upDetail(DetectUpdateDTO detail);

    RespResult detectSearch(DetectTaskSearchDTO detail);

    RespResult detailSearch(DetectDetailSearchDTO detail);

    RespResult sortByPlace();

    RespResult uploadPhoto(MultipartFile multipartFile, HttpServletRequest request);

    RespResult taskSearch(DetectTaskSearchDTO taskSearchDTO);

    RespResult editDetectDetail(DetectDetail detail);

    RespResult applyTask(Integer taskId, Integer state);

    RespResult applyDetect(Integer detectId, Integer state);

    RespResult export(HttpServletResponse response);
}
